firefox opera chrome safari and explorer types of what
firefox opera chrome safari and explorer types of what
Discover firefox opera chrome safari and explorer types of what, include the articles, news, trends, analysis and practical advice about firefox opera chrome safari and explorer types of what on alibabacloud.com
The JS method for determining the browser type can be used to determine whether the browser used by the current client is ie, firefox, safari, chrome or opera. In addition, js can accurately determine the version of ie browser, the code is still directly written. You can modify the code as required.
Method 1:
var Brows
; / * Shown as blue on IE 6 */}Furthermore, because IE 6 does not support max-width attributes, IE6 's CSS property values support expression expressions. Therefore, we can implement max-width the properties effect for IE 60 percent. .As1-Hack{Background-Color:Red;Max-Width: 200px;_width:Expression( function(Me){ VarMaxWidth= 200;Me.style.= (me. Offsetwidth MaxWidth ? Me offsetwidth : Maxwidth) + "px" ; Span class= "pun" > (this ); /* _ only IE6 can be recognized, for performance reasons, t
featured plugins.
Google Chrome, the Chinese name "Google Browser", is a Web browser developed by Google Inc. Competing with Apple's safari, the browsing speed is at the forefront of many browsers, high-end browsers. Licensed with BSD license and open source code, the open-source program is named chromium. The code for this software is based on other open source software, including WebKit and Mozilla, with
stay; +background-color:pink; + IE7 fixed; _background-color:orange; _ Dedicated to the magical ie6;: root #test {background-color:purple\9;}: Root is for IE9, a version of the Internet has been circulated: root #test {background-color:purple\0;}, Uh... This one... , the new opera is also known, so the author repeatedly verifies that the final IE9 is: root selector {attribute \9;} @media all and (min-width:0px) {#test {background-color:black\0;}} Thi
Document directory
CSS hack1: differentiate IE6/7/8 from other browsers
CSS hack2: For IE6 and IE7
CSS hack3: For IE6
CSS hack4: For IE7
CSS hack5: For IE8
CSS hack6: For Firefox
CSS hack7: for opera
CSS hack8: For Safari and Google Chrome
There are many articles about IE6/7/8,
1. There is no semicolon at the end
As follows:
The output of each browser is as follows:
IE6/7/8:
Ie9/Firefox/Chrome/Safari/Opera:
The semicolon (;) is missing in IE6/7/8.
2. the attribute name (color) is in uppercase. See
3. Expand All compound attributes
As follows:
IE6/7/8
property value supports expression expressions. Therefore, we can implement the Max-width property effect for IE 60 percent.
. css-hack {background-color:red;max-width:200px;_width:expression (function (Me) {var maxwidth = Me.style.width = (me.offsetwidth }Below, we will discuss IE 6-11, FireFox, Chrome, Safari, opera
Because IE10-IE11 version problem, no longer support document.all judgment, so IE judgment function to be written again
function Isie () {//ie?
if (!! Window. ActiveXObject | | ' ActiveXObject ' in Window ' return
true;
else return
false;
First, browser only, regardless of version
Copy Code code as follows:
function Mybrowser () {
var useragent = navigator.useragent; Gets the useragent string for the browser
var Isopera = Useragent.ind
Javascript Debug Toolkit is an open source free Eclipse plugin, official home page: HTTP://CODE.GOOGLE.COM/P/JSDT
The following illustration shows a browser comparison supported by a debugging tool
Tools \ Browsers
Ie
Firefox
Safari
Chrome
Opera
Other
This article mainly shared the judgment of IE, FF, Opera, Safari, Chrome and other browser and version of the two methods, the need for friends can refer to the followingBecause IE10-IE11 version problem, no longer support document.all judgment, so IE judgment function to re-writefunction Isie () {//ie? if (!! Window. ActiveXObject | | "ActiveXObject" in win
This article mainly shared the judgment of IE, FF, Opera, Safari, Chrome and other browser and version of the two methods, the need for friends can refer to the followingBecause IE10-IE11 version problem, no longer support document.all judgment, so IE judgment function to re-write?
123456
function isie () { //ie? NBSP;NBSP;NBSP;NBSP;NBSP;NBSP;
This article mainly shares the judgment IE, FF, Opera, Safari, Chrome and other browsers and versions of the two methods, need friends can refer to the version of the ie10-ie11 because of the problem, no longer support document. all judgment, so the ie judgment function should be rewritten.
function isIE() { //ie? if (!!window.ActiveXObject || "ActiveXObje
First, only the browser is differentiated, regardless of the version
Copy codeThe Code is as follows:Function myBrowser (){Var userAgent = navigator. userAgent; // obtain the userAgent string of the browser.Var isOpera = userAgent. indexOf ("Opera")>-1;If (isOpera ){Return "Opera"}; // Determine whether the operabrowser is usedIf (userAgent. indexOf ("Firefox")>-
Today, when I sorted out the CSS of my website, I found that my website was distorted under Firefox. At this time, I am in a hurry.
I found a lot of information on the Internet and found that the following content is more practical: friends who are familiar with CSS must have a good understanding of CSS hack, now we are competing for Internet Explorer, Firefox
Today, I sorted out some common CSSHack, including the commonly used IEhack and the Hack of Firefox, Chrome, and operabrowser, and integrated these CSSHack together, I wrote a small browser tester now for browser IE6-IE10, Firefox, Chrome, Opera,
Today, some of the commonly used CSS hack, including commonly used IE hack and Firefox, Chrome, Opera browser hack, and these CSS hack integrated, wrote a small browser tester. :Let's take a look at the code below:HTML section:
1 2 3 4 5 6 7 8 9 10 11 12 13
div class="content"> div class="test">div> div class="txt"> p>IE6下背景颜色:span class="ie
Nowadays, there are more and more browser types, such as IE, Firefox, Chrome, Safari, etc. So it is not a small function to copy the content of a js file to the clipboard.
Nowadays, there are more and more types of browsers, such as IE,
What is Xmarks? Install Xmarks on each computer your use, and it seamlessly integrates with your Web browser and keeps your bookmarks Safel Y backed up and in sync.Xmarks'll sync across browsers too. Today We support Firefox, Chrome, Internet Explorer, and Safari (Mac OS).
. contentdocument this. contentdocument. Body. offsetheight ){This. Height = This. contentdocument. Body. offsetheight;} Else if (this. Document this. Document. Body. scrollheight ){This. Height = This. Document. Body. scrollheight;}Note: The document attribute of IFRAME refers to its parent document, and document refers to the document contained in it
6. trigger of the mouseout eventAn example: a div contains a SELECT statement. When you move the IE cursor to the select option pop-up option,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.